<?php
class Request {
	public $path = array();
	static private $instance = null;
	static public function getInstance() {
		if (self::$instance === null) {
			self::$instance = new Request();
		}
		return self::$instance;
	}
	function __construct() {
		$uri = '/';
		if (isset($_SERVER['REQUEST_URI'])) {
			$uri = $_SERVER['REQUEST_URI'];
		}
		$uri = str_replace('/../','/',$uri);
		$this->path = explode('/', substr($uri, 1));
	}
}
?>
